#ifndef COMMON_H
#define COMMON_H

#include <stdio.h>
#include "Nano100Series.h"

#ifdef DEBUG
#define LogDebug(...) printf(__VA_ARGS__)
#else
#define LogDebug(...)
#endif // #ifdef DEBUG

// unsigned int (32 bit)
#define VERSION_MAJOR	(0)
#define VERSION_MINOR	(3)

#define MOTION_SENSOR_TYPE_MPU6500
#define MOTION_SENSOR_TYPE_MMC3630

enum video_timing_t {
	VIDEO_TIMING_1440P = 0,
};

extern uint32_t is_video_on;
extern uint32_t is_brightness_changed_by_key;
extern uint32_t is_brightness_changed_by_cmd;
extern uint32_t brightness_set_by_key;
extern uint32_t brightness_set_by_cmd;
extern uint32_t is_volume_changed_by_key;
extern int volume_set_by_key;

void DelayUs(uint32_t n);
void DelayMs(uint32_t n);

#endif
